package com.mifengs.mall.netWork.api;

import com.mifengs.mall.Constant;
import com.mifengs.mall.entity.ImageUpload;
import com.mifengs.mall.entity.ResponseInfo;

import java.util.List;
import java.util.Map;

import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.PartMap;
import retrofit2.http.Url;
import rx.Observable;

/**
 * Created by lihaoqi on 2018/2/1.
 */

public interface ImageUploadApi {

    @Multipart
    @POST(Constant.UPLOADIMG)
    Observable<ImageUpload> uploadFiles(
            @Part List<MultipartBody.Part> partList);


}
